/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package fr.isen.web.webservicetemp.Entity;

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;

/**
 *
 * @author Maistre Louis
 */
@Entity
public class Temperature extends Data{
         
    @Column(name = "tempval")
    private float temp;

    public Temperature() {
        super();
    }

    public Temperature(float temp) { 
        super((long) temp);
    }

    public Temperature(float temp, String name, float posx, float posy, float posz, String apiSource, Date date, float longitude, float latitude) {
        super(name, posx, posy, posz, apiSource, date, longitude, latitude);
        this.temp = temp;
        this.setDataValue((long)temp);
    }

    public float getTemp() {
        return temp;
    }

    public void setTemp(float temp) {
        this.setDataValue((long)temp);
        this.temp = temp;        
    }
    
}
